//
//  MDOSLBSLocationResponse.h
//  MDOSLBS
//
//  Created by KaiChe on 2020/10/30.
//

#import <Foundation/Foundation.h>
#import <MDOSLBS/MDOSLBSLocationRequest.h>
#import <MDOSLBS/MDOSLBSAddressInfo.h>

NS_ASSUME_NONNULL_BEGIN


//只包含经纬度信息的 定位回调
@interface MDOSLBSLocationResponse : NSObject

//表示这个回调 是从哪个请求来的
@property (nonatomic, strong) MDOSLBSLocationRequest *fromRequest;


/// 为 nil 时表示成功 否则失败
@property (nonatomic, strong) NSError *error;
@property (nonatomic, strong) CLLocation *location;


@end

//包含逆地理信息 和 经纬度信息回调
@interface MDOSLBSLocationWithReversingGeocodeResponse : MDOSLBSLocationResponse

//地理信息
@property (nonatomic, strong) MDOSLBSAddressInfo *addressInfo;


@end

NS_ASSUME_NONNULL_END
